
class OscBlogEntity {
	bool original;
	String author;
	bool recommend;
	String href;
	int id;
	int viewCount;
	String body;
	String title;
	int type;//博客：1-原创 4-转载， 新闻：//新闻类型 [0-链接新闻|1-软件推荐|2-讨论区帖子|3-博客|4-普通新闻|7-翻译文章]
	String pubDate;
	int commentCount;

	OscBlogEntity({this.original, this.author, this.recommend, this.href, this.id, this.viewCount, this.body, this.title, this.type, this.pubDate, this.commentCount});

	OscBlogEntity.fromJson(Map<String, dynamic> json) {
		original = json['original'];
		author = json['author'];
		recommend = json['recommend'];
		href = json['href'];
		id = json['id'];
		viewCount = json['viewCount'];
		body = json['body'];
		title = json['title'];
		type = json['type'];
		pubDate = json['pubDate'];
		commentCount = json['commentCount'];
	}

	Map<String, dynamic> toJson() {
		final Map<String, dynamic> data = new Map<String, dynamic>();
		data['original'] = this.original;
		data['author'] = this.author;
		data['recommend'] = this.recommend;
		data['href'] = this.href;
		data['id'] = this.id;
		data['viewCount'] = this.viewCount;
		data['body'] = this.body;
		data['title'] = this.title;
		data['type'] = this.type;
		data['pubDate'] = this.pubDate;
		data['commentCount'] = this.commentCount;
		return data;
	}
}
